import static org.junit.Assert.*;

import org.junit.Test;
import junit.framework.TestCase;

public class CalculaInicialesBTest extends TestCase{

	@SuppressWarnings("deprecation")
	@Test
	public void testCalculaIniciales() {
		MisilEnemigoB tester = new MisilEnemigoB();
		tester.CalculaIniciales();
		int actual=(int) Math.sqrt(((tester.getA()*tester.getA())+(tester.getB()*tester.getB())));
		System.out.println("actual: "+ actual);
		
		assertTrue(actual == 49 || actual==50);
		//fail("Not yet implemented");
	}

}
